package com.zejson.dao.inf;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseMapper {

    long countByExample(Object example);

    int deleteByExample(Object example);

    int deleteByPrimaryKey(Integer id);

    int insert(Object record);

    int insertSelective(Object record);

    List<Object> selectByExample(Object example);

    Object selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Object record, @Param("example") Object example);

    int updateByExample(@Param("record") Object record, @Param("example") Object example);

    int updateByPrimaryKeySelective(Object record);

    int updateByPrimaryKey(Object record);

    List<Object> getByLimit(Integer begin, Integer count);

    int insertByAutoGeneratePK(Object record);
}
